package com.xuetang9.BO;

/**
 * @类: CodeLengthBO
 * @描述: 验证码长度
 * @date: 2020/5/12
 * @author: Admin
 * @ver 1.0.0
 * @since JDK 1.8
 */

public enum CodeLengthBO {
    /**
     * 验证码长度为4
     */
    FOUR(4),
    /**
     * 验证码长度为6
     */
    SIX(6);

    /**
     * 长度
     */
    private final int length;

    CodeLengthBO(int length) {
        this.length = length;
    }

    public int getLength() {
        return length;
    }
}
